TaskCompletionSource(TResult) Constructor (Object)

Task Parallel System.Threading

Creates a TaskCompletionSource<(Of <(TResult>)>) with the specified state.

Namespace:  System.Threading.Tasks
Assembly:  System.Threading (in System.Threading.dll)

Syntax

Visual Basic (Declaration)
Public Sub New ( _
	state As Object _
)
C#
public TaskCompletionSource(
	Object state
)

Parameters

state
Type: System..::.Object
The state to use as the underlying Task<(Of <(TResult>)>)'s AsyncState.

See Also